import Mock from "mockjs";
let url = "http://localhost:8080";

let users = [{
    id: 1,
    username: 'admin',
    upwd: 'admin'
  },
  {
    id: 2,
    username: 'jinyu',
    upwd: '123456'
  }
]

Mock.mock(`${url}/login`, 'get', (options) => {
  return {
    code: 1,
    list: users,
    msg: '登录成功'
  }
})